import { Devcloud } from "../apiClass"
import { IResult } from "../../plugins/Interfaces"


export class ModuleResourceApi extends Devcloud {
  private baseUrl: string = this.path + 'moduleResource/';
  async update(param:any):Promise<IResult> {
    const resp = await this.client.post(this.baseUrl + "update", param)
    return resp.data
  }
  async get(moduleId:number):Promise<IResult> {
    const resp = await this.client.get(this.baseUrl + "getByModuleId", { moduleId: moduleId})
    return resp.data
  }
}